package Test;

import java.util.Scanner;

public class hecha {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int x=scanner.nextInt();
        System.out.println("请输入一个整数：");
        int y=scanner.nextInt();
        int sum=x+y;
        int c=x-y;
        System.out.println("两数和是："+sum+"差是："+c);
    }
}